package com.mrdeer.user.convert;

import com.mrdeer.user.api.dto.tenant.TenantDTO;
import com.mrdeer.user.api.entity.Tenant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 17:46
 */
@Mapper
public interface TenantConvert {
    TenantConvert INSTANCE = Mappers.getMapper(TenantConvert.class);

    TenantDTO entity2Dto(Tenant entity);

    Tenant dto2Entity(TenantDTO dto);
}
